cmake_minimum_required(VERSION 3.15)
project(combine_QtProgress_aria2)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt5 COMPONENTS Widgets CONFIG REQUIRED)

set(APP_NAME QtAria2)
add_executable(${APP_NAME} main.cpp myWidget.cpp myWidget.h)

target_link_libraries(${APP_NAME} PRIVATE Qt::Widgets aria2)